import hyRequest from "@/service";
import type {  RuleForm } from "@/types"

// 登录接口
export function accountLoginApi(account: RuleForm) {
  return hyRequest.post({
    url: "/user_admin/login",
    data: account,
  });
}

// 获取用户信息
export function getUserInfoApi(uid:number) {
  return hyRequest.get({
    url: "/user_admin/getUserInfo?uid=" + uid,
  });
}
// 获取用户菜单树
export function getUserMenuTreeApi(uid:number) {
  return hyRequest.get({
    url: "/user_admin/getRoleMenuTree?uid=" + uid,
  });
}
